<!DOCTYPE html>
<html lang="zh">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../js/jquery-3.5.1.min.js"></script>
    <link rel="stylesheet" href="../css/bootstrap4.5.min.css">
    <link rel="stylesheet" href="../css/public.css">
    <style>
        .img_collection_head {
            display: flex;
            justify-content: space-between;
            padding: 0 20px;
        }

        .img_collection_head_manifesto {
            width: 500px;
            font-size: var(--f_describe);
            line-height: var(--l_describe);
            color: var(--c_text);
            text-align: right;
        }

        .img_collection_video {
            display: flex;
        }

        .img_collection_video li {
            width: 33.3%;
            position: relative;
            padding: 0 20px;
        }

        .img_collection_video li>span {
            display: block;
            width: 60px;
            position: absolute;
            top: 0;
            left: 0;
            opacity: 0;
            right: 0;
            margin: auto;
            height: 60px;
            transition: top 0.3s, opacity 0.3s;
            background: url(https://g-2.ss.faisys.com/image/rimage/jz/vbg01.png?v=202009071158) -116px -196px no-repeat
        }

        .img_collection_video li:hover>span.img_collection_video_btn {
            top: 40%;
            opacity: 1;
        }

        .img_collection_video li>img {
            width: 100%;
            height: 318px;
        }

        .img_collection_video li>p {
            color: var(--c_text);
            font-size: var(--f_text);
            line-height: var(--l_text);
        }

        .video_bg_mask {
            width: 100%;
            /* height: 900px; */
            background-color: rgba(0, 0, 0, 0.5);
            position: fixed;
            top: 0px;
            display: none;
            z-index: 20;
        }

        .video_bg_mask .float_video_frame {
            margin: auto;
            background-color: black;
            position: relative;
            width: 960px;
            height: 540px;
        }

        .video_bg_mask .float_video,
        .video_bg_mask .float_video:focus {
            outline: none;
            width: 100%;
            height: 100%;
        }

        .float_video_frame_close {
            background-image: url(../images/close.png);
            background-repeat: no-repeat;
            display: block;
            width: 50px;
            background-size: 50% 50%;
            background-position: center;
            height: 50px;
            position: absolute;
            top: 0;
            z-index: 21;
            right: 0;
        }
        @media (max-width:768px) {
            .img_collection_head {
                flex-direction: column;
                margin-bottom: 30px;
            }

            .img_collection_head_manifesto {
                text-align: left;
                width: 100%;
            }

            .img_collection_video {
                flex-wrap: wrap;
            }

            .img_collection_video li {
                margin-bottom: 30px;
                width: 100%;
            }

            .img_collection_video li>img {
                height: auto;
            }
            .video_bg_mask .float_video_frame {
                width: 100%;
            }
            
        }
    </style>
    <script>
        $(function () {
            document.getElementById('video_bg_mask').style.height=window.innerHeight+'px'
            document.getElementById('float_video_frame_close').addEventListener('click',function(){
                document.getElementById('video_bg_mask').style.display='none'
            })
            document.querySelectorAll('.img_collection_video_btn').forEach(el=>{
                el.addEventListener('click',function(){
                    document.getElementById('video_bg_mask').style.display='flex'
                    document.getElementById('float_video').getAttributeNode('src').value=el.getAttributeNode('data-video-src').value
                })
            })
            $(window).resize(function(){
                document.getElementById('video_bg_mask').style.height=window.innerHeight+'px'
            })
        })
    </script>
</head>

<body>
    <div class="img_collection modular public_width">
        <div class="img_collection_head">
            <div class="public_title">
                <h2>VIDEO</h2>
                <p>宣传视频</p>
            </div>
            <p class="img_collection_head_manifesto">
                我们为您提供专业设计解决方案通过研究商业模式令品牌长远发展，
                更具竞争力新成立企业，需要有好的标志，好的品牌形象有助于提升企业。
            </p>
        </div>
        <ul class="img_collection_video">
            <li>
                <span class="img_collection_video_btn" data-video-src="https://fanyiapp.cdn.bcebos.com/app/video/query/desert.mp4"></span>
                <img src="https://17855688.s61i.faiusr.com/2/AD0IyOnBCBACGAAgsIi13wUo3NOrrwMwxwM41AI.jpg" alt="">
                <p>某人物工作室品牌宣传</p>
            </li>
            <li>
                <span class="img_collection_video_btn" data-video-src="https://g-0.ss.faisys.com/image/rimage/module/online_flv/Sun.mp4"></span>
                <img src="https://17855688.s61i.faiusr.com/2/AD0IyOnBCBACGAAgoYi13wUoy_WfpQIwxwM41AI.jpg" alt="">
                <p>某人物工作室品牌宣传</p>
            </li>
            <li>
                <span class="img_collection_video_btn" data-video-src="https://fanyiapp.cdn.bcebos.com/app/video/query/desert.mp4"></span>
                <img src="https://17855688.s61i.faiusr.com/2/AD0IyOnBCBACGAAgoYi13wUon7LzwwMwxwM41AI.jpg" alt="">
                <p>某人物工作室品牌宣传</p>
            </li>
        </ul>
    </div>
    <div id="video_bg_mask" class="video_bg_mask">
        <div class="float_video_frame">
            <span class="float_video_frame_close" id="float_video_frame_close"></span>
            <video id="float_video" src="" class="float_video" controls
                contextmenu="">
            </video>
        </div>
    </div>
</body>

</html>